<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateSaleOrderReportEntityTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateSaleOrderReportEntityLabel_monthOfSales}" for="monthOfSales" />
                    <h:inputText id="monthOfSales" value="#{saleOrderReportEntityController.selected.monthOfSales}" title="#{bundle.CreateSaleOrderReportEntityTitle_monthOfSales}" />
                    <h:outputLabel value="#{bundle.CreateSaleOrderReportEntityLabel_product}" for="product" />
                    <h:selectOneMenu id="product" value="#{saleOrderReportEntityController.selected.product}" title="#{bundle.CreateSaleOrderReportEntityTitle_product}" >
                        <f:selectItems value="#{completedGoodsEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateSaleOrderReportEntityLabel_quantity}" for="quantity" />
                    <h:inputText id="quantity" value="#{saleOrderReportEntityController.selected.quantity}" title="#{bundle.CreateSaleOrderReportEntityTitle_quantity}" />
                    <h:outputLabel value="#{bundle.CreateSaleOrderReportEntityLabel_type}" for="type" />
                    <h:inputText id="type" value="#{saleOrderReportEntityController.selected.type}" title="#{bundle.CreateSaleOrderReportEntityTitle_type}" />
                    <h:outputLabel value="#{bundle.CreateSaleOrderReportEntityLabel_yearOfSales}" for="yearOfSales" />
                    <h:inputText id="yearOfSales" value="#{saleOrderReportEntityController.selected.yearOfSales}" title="#{bundle.CreateSaleOrderReportEntityTitle_yearOfSales}" />
                    <h:outputLabel value="#{bundle.CreateSaleOrderReportEntityLabel_id}" for="id" />
                    <h:inputText id="id" value="#{saleOrderReportEntityController.selected.id}" title="#{bundle.CreateSaleOrderReportEntityTitle_id}" />
                    <h:outputLabel value="#{bundle.CreateSaleOrderReportEntityLabel_createdAt}" for="createdAt" />
                    <h:inputText id="createdAt" value="#{saleOrderReportEntityController.selected.createdAt}" title="#{bundle.CreateSaleOrderReportEntityTitle_createdAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateSaleOrderReportEntityLabel_createdBy}" for="createdBy" />
                    <h:inputText id="createdBy" value="#{saleOrderReportEntityController.selected.createdBy}" title="#{bundle.CreateSaleOrderReportEntityTitle_createdBy}" />
                    <h:outputLabel value="#{bundle.CreateSaleOrderReportEntityLabel_lastModifiedAt}" for="lastModifiedAt" />
                    <h:inputText id="lastModifiedAt" value="#{saleOrderReportEntityController.selected.lastModifiedAt}" title="#{bundle.CreateSaleOrderReportEntityTitle_lastModifiedAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateSaleOrderReportEntityLabel_lastModifiedBy}" for="lastModifiedBy" />
                    <h:inputText id="lastModifiedBy" value="#{saleOrderReportEntityController.selected.lastModifiedBy}" title="#{bundle.CreateSaleOrderReportEntityTitle_lastModifiedBy}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{saleOrderReportEntityController.create}" value="#{bundle.CreateSaleOrderReportEntitySaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{saleOrderReportEntityController.prepareList}" value="#{bundle.CreateSaleOrderReportEntityShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateSaleOrderReportEntityIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
